package com.jlnk.androidfmc.entity;

public class Post {
    private int id;
    private String content;
    private String imageUrl;
    private byte[] imageByteArray;

    // 构造函数
    public Post() {
    }

    // 带参数的构造函数
    public Post(int id, String content, String imageUrl) {
        this.id = id;
        this.content = content;
        this.imageUrl = imageUrl;
    }

    // id 的 getter 和 setter
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    // content 的 getter 和 setter
    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    // imageUrl 的 getter 和 setter
    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    // 可选：重写 toString 方法，以便于打印和调试
    @Override
    public String toString() {
        return "Post{" +
                "id=" + id +
                ", content='" + content + '\'' +
                ", imageUrl='" + imageUrl + '\'' +
                '}';
    }
    public byte[] getImageData() {
        return imageByteArray;
    }

    public void setImageData(byte[] imageByteArray) {
        this.imageByteArray = imageByteArray;
    }



}
